<include file="Public/ADMIN/HTML/Admin_header/admin_first_head.html" />
<title>创新活动管理{$Think.const.TITLE}</title>
<link rel="stylesheet" type="text/css" href="/world/public/fontAwesome/css/font-awesome.min.css">
<include file="Public/ADMIN/HTML/Admin_header/admin_css_and_js.html" />
<include file="Public/ADMIN/HTML/Admin_header/admin_title.html" />
<include file="Public/ADMIN/HTML/Admin_header/admin_middle_list.html" />
<include file="Public/ADMIN/HTML/Left_list/activity_left_list.html" />
<!-- DataTables Example -->
<style type="text/css">
	.select{
		height: 1.3em;
		width: 1.6em;
		font-size: 2px;
	}
</style>
<div class="row" style="height: 80%">
	<div class="col-lg-10" style="float: right">
		<div class="widget-container fluid-height clearfix">
			<div class="heading">
				<i class="icon-table"></i>活动列表
			</div>
			<div class="widget-content padded clearfix">
				<table class="table table-bordered table-striped dataTable"
					id="datatable-editable">
					<thead>
						<th style="width: 8%; text-align: center">编号</th>
						<th style="width: 10%; text-align: center">活动名称</th>
						<th style="width: 10%; text-align: center;">活动地点</th>
						<th style="width: 15%; text-align: center">活动时间</th>
						<th style="width: 10%; text-align: center;">票数/余票</th>
						<th style="width: 10%; text-align: center">抢票状态</th>
						<th style="width: 10%; text-align: center;">资料下载</th>
						<th style="width: 15%; text-align: center;" class="sorting" role="columnheader" tabindex="0" aria-controls="datatable-editable" rowspan="1" colspan="1" aria-label="活动简述: activate to sort column ascending">活动简述</th>
						<th style="width: 15%; text-align: center;">操作</th>
					</thead>
					<tbody>
						<assign name="number" value="1" />
						<assign name="project_not_through_id" value="100000" />
						<volist name="list" id="vo">
						<tr>
							<td style="text-align: center;">{$number++}</td>
							<td style="text-align: center;"><a href="{:U('activity/detial',array('aid'=>$vo['aid']))}">{$vo.aname}</a></td>
							<td style="text-align: center;">{$vo.place}</td>
							<td style="text-align: center;">{$vo.startdate}<br>||<br>{$vo.enddate}</td>
							<td style="text-align: center;">{$vo.totalticket}/{$vo.restticket}</td>
							<td style="text-align: center;">
							<if condition="$vo['status'] eq 0"><span class="label label-primary">未开始</span></if>
							<if condition="$vo['status'] eq 1"><span class="label label-warning">进行中</span></if>
							<if condition="$vo['status'] eq 2"><span class="label label-default">已结束</span></if>
							</td>
							<td style="text-align: center;">{$vo.attach}</td>
							<td ">
							  <?php
                                 echo mb_substr($vo['desc'],0,20,'utf-8');
                                if(strlen($vo['desc'])>10)
                                echo '......';
                                ?>
                               </td>
							<td  style="text-align: center;">
							<a class="icon-remove"  href="{:U('activity/del',array('aid'=>$vo['aid']))}" title="删除"></a>&nbsp;&nbsp;
							<a class=" icon-pencil" href="{:U('activity/edit',array('aid'=>$vo['aid']))}" title="修改"></a>&nbsp;&nbsp;
							<a class=" icon-signout" href="{:U('activity/exstu',array('aid'=>$vo['aid'],'aname'=>$vo['aname']))}" title="导出学生名单">&nbsp;&nbsp;
							<a class=" icon-signin" href="{:U('activity/instu',array('aid'=>$vo['aid'],'aname'=>$vo['aname']))}" title="导入学生名单">
							</td>
						</tr>
						</volist>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>
<!-- end DataTables Example -->
</div>
</div>
</body>
</html>